import request from '@/router/axios';
import serviceList from '@/config/serviceList'
import {baseURL} from '@/api/common';

const {aihumanCore} = serviceList

export const getActionPageList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionType/getPageList`,
    method: 'post',
    data
  })
}
export const deleteAction = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionType/deleteGroup`,
    method: 'post',
    data
  })
}

export const changeActionStatus = (params) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionType/changeStatus`,
    method: 'get',
    params
  })
}

export const addOrUpdateAction = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionType/addOrUpdateAction`,
    method: 'post',
    data
  })
}


export const addActionBatch = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionType/addActionBatch`,
    method: 'post',
    data
  })
}
export const getPackList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionPackage/getPageList`,
    method: 'post',
    data
  })
}
export const addOrUpdateWithAction = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionPackage/addOrUpdateWithAction`,
    method: 'post',
    data
  })
}
export const changeStatusPack = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionPackage/changeStatus`,
    method: 'post',
    data
  })
}
export const deleteBatchPack = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionPackage/deleteBatch`,
    method: 'post',
    data
  })
}

export const actionPackageDetail = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionPackage/detail`,
    method: 'post',
    data
  })
}

export const addOrUpdatePackInfo = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsActionPackage/addOrUpdate`,
    method: 'post',
    data
  })
}

